package feizhou.untils.tools.signature;

import lombok.Data;

/**
 * @ClassName: SignatureParam
 * @Description 签名参数
 * @Author feizhou
 * @Date 2023/11/13  14:26
 * @Verson 1.0
 **/
@Data
public class SignatureParam implements Comparable<SignatureParam> {
    public String name;//参数名称
    public String value;//参数值
    public int order;//参数排序


    @Override
    public int compareTo(SignatureParam other) {
        //按照order 升序
        return  this.order-other.getOrder();
    }

    public SignatureParam(String name, String value, int order) {
        this.name = name;
        this.value = value;
        this.order = order;
    }
}